package com.ruoyi.iot.mapper;

import com.ruoyi.iot.domain.IotRulesTriggerTerm;

import java.util.List;

/**
 * 规则触发项Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-28
 */
public interface IotRulesTriggerTermMapper {
    /**
     * 查询规则触发项
     *
     * @param termId 规则触发项主键
     * @return 规则触发项
     */
    public IotRulesTriggerTerm selectIotRulesTriggerTermByTermId(Long termId);

    /**
     * 查询规则触发项列表
     *
     * @param iotRulesTriggerTerm 规则触发项
     * @return 规则触发项集合
     */
    public List<IotRulesTriggerTerm> selectIotRulesTriggerTermList(IotRulesTriggerTerm iotRulesTriggerTerm);

    /**
     * 新增规则触发项
     *
     * @param iotRulesTriggerTerm 规则触发项
     * @return 结果
     */
    public int insertIotRulesTriggerTerm(IotRulesTriggerTerm iotRulesTriggerTerm);

    /**
     * 修改规则触发项
     *
     * @param iotRulesTriggerTerm 规则触发项
     * @return 结果
     */
    public int updateIotRulesTriggerTerm(IotRulesTriggerTerm iotRulesTriggerTerm);

    /**
     * 删除规则触发项
     *
     * @param termId 规则触发项主键
     * @return 结果
     */
    public int deleteIotRulesTriggerTermByTermId(Long termId);

    /**
     * 批量删除规则触发项
     *
     * @param termIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIotRulesTriggerTermByTermIds(Long[] termIds);
}
